import org.mindrot.jbcrypt.BCrypt;

/**
 * @author :     sunting
 * @date :    2023/5/8 14:22
 * @description :
 */
public class gengratePassword {
    public static void main(String[] args) {
        String hashPw = BCrypt.hashpw("1234", "$2a$10$WN.h2KCJrffDF2S6yuAAhe");
        System.out.println(hashPw);

        Boolean checkPw  = BCrypt.checkpw("1234", "$2a$10$WN.h2KCJrffDF2S6yuAAhe1FR8XQIUJLbZmQWkL49YJoKrfHtp0Te");
        System.out.println(checkPw);
    }
}
